QT += core
QT -= gui

CONFIG += c++11

TARGET = FOSU_AWAKENLION_2023
CONFIG += console
CONFIG -= app_bundle

TEMPLATE = app

#INCLUDEPATH += -I/usr/local/include \
#               -I/usr/local/include/opencv \
#               -I/usr/local/include/opencv2 \

#LIBS += -L/usr/local/lib -lopencv_ml -lopencv_dnn -lopencv_objdetect -lopencv_stitching -lopencv_superres -lopencv_videostab -lopencv_photo -lopencv_shape -lopencv_video -lopencv_calib3d -lopencv_features2d -lopencv_highgui -lopencv_videoio -lopencv_imgcodecs -lopencv_imgproc -lopencv_flann -lopencv_core

QMAKE_CFLAGS  =`pkg-config --cflags opencv`
LIBS += `pkg-config --libs opencv` -lMVSDK
INCLUDEPATH = -I./include

HEADERS += \
#    include/AttackTop.h \
#    include/VideoCaptureFactory.h \
#    include/Tool.h \
    ArmorDetector/TargetDetection.h \
#    include/ShapeGan.h \
    Settings/Settings.h \
    Serial/Serial.h \
    Serial/Protocol.h \
    Preprocessing/Preprocessing.h \
    AngleSolver/PnpSolver.h \
    Serial/PackData.h \
#    include/Kalman.h \
    Serial/JudgementInfo.h \
    Serial/InfantryInfo.h \
#    include/IndVideoCapture.h \
    Gui/Gui.h \
#    include/Common.h \
#    include/ColorDetector.h \
    ArmorDetector/ArmorDetector.h \
#    include/CameraStatus.h \
#    include/CameraDefine.h \
    Camera/CameraApi.h \
    Camera/MVVideoCapture.h \
#    include/VisualPid.h \
#    include/CCalibration.h \
#    include/DigitDetector.h \
#    include/Predictor.h \
#    include/VideoControl.h \
#    include/FFCSolver.h \
#    include/ExtendedKalmanFilter.h \
    AngleSolver/GravityCompensateResolve.h \
#    include/Engineer.h \
    AngleSolver/bayesEstimateVelocity.h \
#    include/RMVideoCapture.h \
    ArmorDetector/NCopenvino.h \
    kalman/armor_kalman.h

SOURCES += \
#    src/VideoCaptureFactory.cpp \
#    src/Tool.cpp \
    ArmorDetector/TargetDetection.cpp \
#    src/ShapeGan.cpp \
    Settings/Settings.cpp \
    Serial/Serial.cpp \
#    src/RMVideoCapture.cpp \
    Serial/Protocol.cpp \
    Preprocessing/Preprocessing.cpp \
    AngleSolver/PnpSolver.cpp \
    Serial/PackData.cpp \
    Serial/InfantryInfo.cpp \
    main.cpp \
    Camera/MVVideoCapture.cpp \
#    src/IndVideoCapture.cpp \
    Gui/Gui.cpp \
#    src/ColorDetector.cpp \
    ArmorDetector/ArmorDetector.cpp \
#    src/MVVideoCapture.cpp \
#    src/Predictor.cpp \
#    src/DigitDetector.cpp \
#    src/VideoControl.cpp \
    AngleSolver/GravityCompensateResolve.cpp \
    AngleSolver/bayesEstimateVelocity.cpp \
    ArmorDetector/Ncopenvino.cpp \
    kalman/armor_kalman.cpp

DISTFILES += \
    config_file/param_other.yml \
    config_file/param_armor.yml \
    config_file/param_throw_compensate.yml \
    calibration/Camera640.xml \
    config_file/param_pid-sentry7.yml \
    config_file/param_pid-hero1.yml \
    config_file/param_pid-fantry5.yml \
    config_file/param_pid-fantry3.yml \
    config_file/right.jpg \
    config_file/left.jpg \
    src/README.md \
    calibration/default.xml \
    config_file/param_kalman.yml \
    calibration/Camera752-hero1.xml \
    config_file/param_kalman.yml \
    calibration/Camera752-infantry.xml


#openvino
#INSTALLDIR=/opt/intel/openvino_2021
INCLUDEPATH +=/opt/intel/openvino_2021/deployment_tools/inference_engine/include\
   /usr/local/include/opencv\
   /opt/intel/openvino_2021/opencv/include/opencv2\



LIBS +=/opt/intel/openvino_2021/deployment_tools/inference_engine/lib/intel64/libinference_engine_*.so\
       /opt/intel/openvino_2021/deployment_tools/inference_engine/lib/intel64/libMKLDNNPlugin.so\
       /opt/intel/openvino_2021/opencv/lib/libopencv_*.so\


#inference_engine
win32:CONFIG(release, debug|release): LIBS += -L$$PWD/../../../../opt/intel/openvino_2021/inference_engine/lib/intel64/release/ -linference_engine
else:win32:CONFIG(debug, debug|release): LIBS += -L$$PWD/../../../../opt/intel/openvino_2021/inference_engine/lib/intel64/debug/ -linference_engine
else:unix: LIBS += -L$$PWD/../../../../opt/intel/openvino_2021/inference_engine/lib/intel64/ -linference_engine

INCLUDEPATH += $$PWD/../../../../opt/intel/openvino_2021/inference_engine/include
DEPENDPATH += $$PWD/../../../../opt/intel/openvino_2021/inference_engine/include


# ngraph
win32:CONFIG(release, debug|release): LIBS += -L$$PWD/../../../../opt/intel/openvino_2021/deployment_tools/ngraph/lib/release/ -lngraph
else:win32:CONFIG(debug, debug|release): LIBS += -L$$PWD/../../../../opt/intel/openvino_2021/deployment_tools/ngraph/lib/debug/ -lngraph
else:unix: LIBS += -L$$PWD/../../../../opt/intel/openvino_2021/deployment_tools/ngraph/lib/ -lngraph

INCLUDEPATH += $$PWD/../../../../opt/intel/openvino_2021/deployment_tools/ngraph/include
DEPENDPATH += $$PWD/../../../../opt/intel/openvino_2021/deployment_tools/ngraph/include


win32:CONFIG(release, debug|release): LIBS += -L$$PWD/../../../../opt/intel/openvino_2021/deployment_tools/inference_engine/lib/intel64/release/ -linference_engine_c_api
else:win32:CONFIG(debug, debug|release): LIBS += -L$$PWD/../../../../opt/intel/openvino_2021/deployment_tools/inference_engine/lib/intel64/debug/ -linference_engine_c_api
else:unix: LIBS += -L$$PWD/../../../../opt/intel/openvino_2021/deployment_tools/inference_engine/lib/intel64/ -linference_engine_c_api

INCLUDEPATH += $$PWD/../../../../opt/intel/openvino_2021/deployment_tools/inference_engine/include/cpp
DEPENDPATH += $$PWD/../../../../opt/intel/openvino_2021/deployment_tools/inference_engine/include/cpp

# opencv

win32:CONFIG(release, debug|release): LIBS += -L$$PWD/../../../../opt/intel/openvino_2021/opencv/lib/release/ -lopencv_calib3d
else:win32:CONFIG(debug, debug|release): LIBS += -L$$PWD/../../../../opt/intel/openvino_2021/opencv/lib/debug/ -lopencv_calib3d
else:unix: LIBS += -L$$PWD/../../../../opt/intel/openvino_2021/opencv/lib/ -lopencv_calib3d

INCLUDEPATH += $$PWD/../../../../opt/intel/openvino_2021/opencv/include/opencv2
DEPENDPATH += $$PWD/../../../../opt/intel/openvino_2021/opencv/include/opencv2
